package cn.com.dhcc.adam.spring.aspectj;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanTest {
	public static void main(String[] args) {
		// 创建 Spring 容器
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("springcontainer/aop/bean.xml");
		Chinese p = ctx.getBean("chinese", Chinese.class);
		p.sayHello("张三");
		p.eat("西瓜");
		ctx.close();
	}
}
